package com.jzmy.site.controller.feign;

import com.jzmy.site.service.CertificateProfileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

/**
 * @author mengzhichao
 * @create 2022-08-29-13:44
 */
@RestController
@RequestMapping("/CertificateProfileFeignController")
public class CertificateProfileFeignController {

    @Autowired
    private CertificateProfileService certificateProfileService;

    /**
     * api小程序端-证书概况信息列表接口--公开方法，不需要登录
     */
    @GetMapping("/selByFormal")
    public List<Map<Object,Object>> selByFormal(){
      return  certificateProfileService.selByAll();
    }


    @GetMapping("/selByFormalByProfileId")
    public String selByFormalByProfileId(@RequestParam("id") String id){
        System.out.println("接到参数id为-------------------------------------"+id);
        return  certificateProfileService.selByFormalByProfileId(id);
    }

}
